function findSymbol (arr) {
	
	arr = arr.sort();
	
	var currMax = 1;
	var currSymb = arr[0];
	var max = 1;
	var maxSymb = arr[0];
	
	for (var i = 1; i < arr.length; i++) {
		
		if (currSymb == arr[i]) {			
			currMax++;
		} else {
			if (currMax > max) {				
				max = currMax;
				maxSymb = currSymb;
				currSymb = arr[i];
				currMax = 1;
			}
		}
	}
	return (maxSymb + ' (' + max + ' ' + 'times)');
}

function findSymbol2 (arr) {
	
	var max = 1;
	var maxSymb = arr1[0];
	
	for (var i = 0; i < array.length - 1; i++) {
		var currMax = 1;
		var currSymb = arr1[i];
		for (var j = i + 1; j < array.length) {
			if (currSymb == arr) {
				
			}
		}
	}
	
	document.write(maxSymb + ' (' + max + ' ' + 'times)');
}